package com.source.labelAndBarcode.vo;

import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author Iceberg777
 */
@Data
@ContentRowHeight(15)
@HeadRowHeight(25)
@ColumnWidth(25)
@ExcelIgnoreUnannotated
public class SlaughterHouseVo{

    @ApiModelProperty(value = "屠宰场编号")
    @TableId(value = "slaughterHouseId", type = IdType.ASSIGN_UUID)
    @ExcelIgnore
    private String slaughterHouseId;

    @ApiModelProperty(value = "屠宰场名称")
    @TableField("slaughterHouseName")
    @ExcelProperty(value = "市场名称", index = 0)
    private String slaughterHouseName;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    @ExcelProperty(value = "经度", index = 8)
    private String longitude;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    @ExcelProperty(value = "纬度", index = 9)
    private String latitude;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate",fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date createDate;

    @ApiModelProperty(value = "省")
    @TableField("province")
    @ExcelProperty(value = "市场所在省",index = 1)
    private String province;

    @ApiModelProperty(value = "市")
    @TableField("city")
    @ExcelProperty(value = "市场所在市",index = 2)
    private String city;

    @ApiModelProperty(value = "区")
    @TableField("district")
    @ExcelProperty(value = "市场所在区",index = 3)
    private String district;

    @ApiModelProperty(value = "详细地址")
    @TableField("address")
    @ExcelProperty(value = "市场地址", index = 4)
    private String address;

    @ApiModelProperty(value = "联系人")
    @TableField("contacts")
    @ExcelIgnore
    private String contacts;

    @ApiModelProperty(value = "成立日期")
    @TableField("establishDate")
    @ExcelProperty(value = "成立日期", index = 6)
    private Date establishDate;

    @ApiModelProperty(value = "市场照片")
    @TableField("marketPictures")
    private String marketPictures;

    @ApiModelProperty(value = "市场介绍")
    @TableField("marketIntroduction")
    @ExcelProperty(value = "市场介绍", index = 7)
    private String marketIntroduction;

    @ApiModelProperty(value = "状态（0已删1正常2发布待审核3删除待审核）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "屠宰场二维码")
    @TableField("slaughterHouseCode")
    private String slaughterHouseCode;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("isDelete")
    @TableLogic
    private Boolean isDelete;

    //user部分

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    @ExcelIgnore
    private String userId;

    @ApiModelProperty(value = "用户名")
    @TableField("name")
    @ExcelProperty(value = "负责人", index = 5)
    private String name;

    @ApiModelProperty(value = "用户QQ")
    private String qq;

    @ApiModelProperty(value = "微信号")
    private String wechat;

    @ApiModelProperty(value = "二维码相对路径")
    private String wechatCode;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "手机")
    private String mobile;

}
